﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class Way_open : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            SqlConnection strcon = Class1.DBconnection();
            strcon.Open();
            SqlDataAdapter sda = new SqlDataAdapter("select * from tb_Way where id=" + Request.QueryString["id"], strcon);
            DataSet ds = new DataSet();
            sda.Fill(ds, "tb_Way");
            DataRowView rowview = ds.Tables["tb_Way"].DefaultView[0];
            LBLType.Text = rowview["Type"].ToString();
            LBLStart.Text = rowview["Start"].ToString();
            LBLWhither.Text = rowview["Whither"].ToString();
            LBLWay.Text = rowview["Way"].ToString();
            LBLPirce.Text = rowview["Pirce"].ToString();
            LBLCompanynName.Text = rowview["CompanyName"].ToString();
            LBLLinkman.Text = rowview["Linkman"].ToString();
            LBLTel.Text = rowview["Tel"].ToString();
            LBLBewrite.Text = rowview["Bewrite"].ToString();
            LBLNow.Text = rowview["SendNow"].ToString();
            ds.Clear();
            strcon.Close();
        } 
    }
}
